﻿<UserControl x:Class="XAMLStylePad.Views.PreviewPanel"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:wpg="clr-namespace:WPG;assembly=WPG"
             MinHeight="10" MinWidth="50"
             x:Name="control">

    <UserControl.Resources>
        <ResourceDictionary Source="/Themes/AppResources.xaml"/>
    </UserControl.Resources>


    <DockPanel ScrollViewer.CanContentScroll="True">
        <Expander ExpandDirection="Left" DockPanel.Dock="Right" HorizontalContentAlignment="Stretch"
                  ToolTip="Properties of DataContext or control">
            <wpg:PropertyGrid x:Name="previewProps" ShowPreview="False" ShowDescription="False" Width="300"/>
        </Expander>
        <TextBlock x:Name="linkCreateNewDataObject" Visibility="Collapsed" DockPanel.Dock="Top" HorizontalAlignment="Left">
            <Hyperlink Click="Hyperlink_Click">
                create new...
            </Hyperlink>
        </TextBlock>
        <ScrollViewer>
            <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"
                        Name="ctrlPlacement" Effect="{x:Null}"/>
        </ScrollViewer>
    </DockPanel>

</UserControl>
